<?php
//货币列表
namespace Admin\Controller;
use Think\Controller;
class ExchangeController extends CommonController {

	public function _initialize(){
	parent::_initialize();
	$this->model="exchange";
	$this->key="ex_currency_name";	
	$this->title_index= L('index');
	$this->title_details=L('details');
	}
	
	public function deleteHandle(){
		if(in_array(I('path.2'),['CNY','USD','GBP','EUR','JPY','CAD','AUD']))
			$this->error(L("currency_delete_failed"));
		
		parent::deleteHandl();
	}	

}